package cn.iocoder.yudao.module.vote.service.voteuserresult.strategy;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Map;

@Component

public class ScopeStrategyFactory {


    @Resource
    private ScopeStrategy scopeStrategy;

    @Resource
    private Map<String, ScopeStrategy> strategies ;


    public ScopeStrategy getStrategy(String strategyName)
    {
        return strategies.get(strategyName);
    }


}
